package com.lwj.hiring.company.entity;

import java.util.Date;

import com.lwj.hiring.common.Column;

/**
 * ApplicationEntity 职位申请
 * 
 * @author Administrator
 *
 */
public class ApplicationEntity {

	private int id;
	@Column("position_id")
	private int positionId;
	@Column("talent_id")
	private int talentId;
	@Column("resume_id")
	private int resumeId;
	private int status;
	@Column("app_time")
	private Date appTime;
	@Column("handle_time")
	private Date handleTime;

	// 扩展属性
	@Column("resume.intention")
	private String resumeIntention;
	@Column("position.name")
	private String positionName;
	@Column("company.name")
	private String companyName;
	@Column("talent.name")
	private String talentName;

	// 临时传参
	@Column("company.id")
	private int companyId;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPositionId() {
		return positionId;
	}

	public void setPositionId(int positionId) {
		this.positionId = positionId;
	}

	public int getTalentId() {
		return talentId;
	}

	public void setTalentId(int talentId) {
		this.talentId = talentId;
	}

	public int getResumeId() {
		return resumeId;
	}

	public void setResumeId(int resumeId) {
		this.resumeId = resumeId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getAppTime() {
		return appTime;
	}

	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}

	public Date getHandleTime() {
		return handleTime;
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public String getResumeIntention() {
		return resumeIntention;
	}

	public void setResumeIntention(String resumeIntention) {
		this.resumeIntention = resumeIntention;
	}

	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getTalentName() {
		return talentName;
	}

	public void setTalentName(String talentName) {
		this.talentName = talentName;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public String getStatusStr() {
		if (status == 1) {
			return "待审核";
		} else if (status == 2) {
			return "审核通过";
		} else if (status == 3) {
			return "已拒绝";
		} else {
			return "Unknow";
		}
	}
}
